/* volume mounting - delayed open process */
GtkPlacesOpenFlags go_to_after_mount_open_flags;
+ GCancellable *cancellable;
GtkWidget *popup_menu;
GSList *shortcuts;
"standard::display-name,standard::symbolic-icon",
G_FILE_QUERY_INFO_NONE,
G_PRIORITY_DEFAULT,
- NULL,
+ sidebar->cancellable,
on_app_shortcuts_query_complete,
sidebar);
}
"standard::display-name,standard::symbolic-icon",
G_FILE_QUERY_INFO_NONE,
G_PRIORITY_DEFAULT,
- NULL,
+ sidebar->cancellable,
on_bookmark_query_info_complete,
clos);
}
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (sidebar)), GTK_STYLE_CLASS_SIDEBAR);
+ sidebar->cancellable = g_cancellable_new ();
+
create_volume_monitor (sidebar);
sidebar->open_flags = GTK_PLACES_OPEN_NORMAL;
sidebar = GTK_PLACES_SIDEBAR (object);
+ if (sidebar->cancellable)
+ {
+ g_cancellable_cancel (sidebar->cancellable);
+ g_object_unref (sidebar->cancellable);
+ sidebar->cancellable = NULL;
+ }
+
sidebar->tree_view = NULL;
if (sidebar->drag_leave_timeout_id)